package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * projectName: shop-manage
 *
 * @author: 元
 * time: 2021/9/13 0013 19:26
 * description:
 */
@Service
public class ProductServiceImpl implements ProductService{
    @Autowired
    private DtsGoodsProductMapper dtsGoodsProductMapper;
    @Override
    public Integer productCount() {
        QueryWrapper<DtsGoodsProduct> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("deleted", 0);
        Integer selectCount = dtsGoodsProductMapper.selectCount(queryWrapper);
        return selectCount;
    }
}
